

#ifndef __SERIAL_H__
#define __SERIAL_H__

#define UART1_RXBUFLEN 64	
#define UART1_TXBUFLEN 64

	//extern unsigned char Uart1_Rxbuf[];    // 接收缓冲区
	//extern unsigned char Uart1_Txbuf[];    // 发送缓冲区

void SerialTx_ReStarTx(void);
void SerialTx_Init(void);
void SerialTx_InsertBuff(unsigned char *buf,unsigned char len);


typedef struct SerialTx
{

  unsigned char TxBuf[UART1_TXBUFLEN];
  unsigned char *pTxBuf;
  
  unsigned char TxBufCnt;                            /* Button press duration */
  
  struct SerialTx *Next;
  
}SerialTx_t;


#endif
